/**
 * 
 */
package ru.msu.cmc.sp.oberon2.exceptions;

import ru.msu.cmc.sp.oberon2.InterAST;

/**
 * @author pau
 *
 */
public class RuntimeError extends BaseException {
	private static final long serialVersionUID = 1L;

	public enum RuntimeErrorType
	{
		INPUT_FORMAT_ERROR,
		DIVISION_BY_ZERO,
		INTEGER_OVERFLOW,
		DOMAIN_ERROR,
		OUT_BOUNDS_ERROR,
		HALT,
		INTERNAL_ERROR_EXECUTE_EXCEPION,
		INTERNAL_ERROR_STRUCTURE_ERROR
	}
	
	public RuntimeErrorType e;
	
	public RuntimeError(InterAST c, RuntimeErrorType _e)
	{
		super(c.getLine(),c.getCharPositionInLine(),"");
		
		
		e = _e;
	}
}
